package com.joolun.mall.entity;

import java.math.BigDecimal;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品评分对象 product_rating
 * 
 * @author joolun
 * @date 2025-04-12
 */
public class ProductRating extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评分ID，主键 */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String content;

    /** 商品总分(1-5分) */
    @Excel(name = "商品总分(1-5分)")
    private BigDecimal totalScore;

    /** 外观分数(1-5分) */
    @Excel(name = "外观分数(1-5分)")
    private Integer appearanceScore;

    /** 性能分数(1-5分) */
    @Excel(name = "性能分数(1-5分)")
    private Integer performanceScore;

    /** 价格分数(1-5分) */
    @Excel(name = "价格分数(1-5分)")
    private Integer priceScore;

    /** 售后服务分数(1-5分) */
    @Excel(name = "售后服务分数(1-5分)")
    private Integer serviceScore;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTotalScore(BigDecimal totalScore) 
    {
        this.totalScore = totalScore;
    }

    public BigDecimal getTotalScore() 
    {
        return totalScore;
    }
    public void setAppearanceScore(Integer appearanceScore) 
    {
        this.appearanceScore = appearanceScore;
    }

    public Integer getAppearanceScore() 
    {
        return appearanceScore;
    }
    public void setPerformanceScore(Integer performanceScore) 
    {
        this.performanceScore = performanceScore;
    }

    public Integer getPerformanceScore() 
    {
        return performanceScore;
    }
    public void setPriceScore(Integer priceScore) 
    {
        this.priceScore = priceScore;
    }

    public Integer getPriceScore() 
    {
        return priceScore;
    }
    public void setServiceScore(Integer serviceScore) 
    {
        this.serviceScore = serviceScore;
    }

    public Integer getServiceScore() 
    {
        return serviceScore;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("totalScore", getTotalScore())
            .append("appearanceScore", getAppearanceScore())
            .append("performanceScore", getPerformanceScore())
            .append("priceScore", getPriceScore())
            .append("serviceScore", getServiceScore())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
